/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.mzk.kramerius4.resolver;

/**
 *
 * @author Martin Řehánek <rehan at mzk.cz>
 */
public class K3Identifier {

    private final String sigla;
    private final String number;

    public K3Identifier(String sigla, String number) {
        this.sigla = sigla;
        this.number = number;
    }

    /**
     * @return the sigla
     */
    public String getSigla() {
        return sigla;
    }

    /**
     * @return the number
     */
    public String getNumber() {
        return number;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final K3Identifier other = (K3Identifier) obj;
        if ((this.sigla == null) ? (other.sigla != null) : !this.sigla.equals(other.sigla)) {
            return false;
        }
        if ((this.number == null) ? (other.number != null) : !this.number.equals(other.number)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 83 * hash + (this.sigla != null ? this.sigla.hashCode() : 0);
        hash = 83 * hash + (this.number != null ? this.number.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "K3Identifier{" + "sigla=" + sigla + ", number=" + number + '}';
    }
}
